import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;


public class PlayData {
	
	static Hashtable<String, String> sessionData = new Hashtable<String, String>();
	static Hashtable<String,String> replaceData = new Hashtable<String,String>();
	static Hashtable<String,String> cookieData = new Hashtable<String,String>();
	static ArrayList skipData = new ArrayList();
	
	public static void clearSkipData(){
		skipData.clear();
	}
	public static void addSkipData(List data){
		skipData.addAll(data);
	}
	public static void addSkipData(String data){
		skipData.add(data);
	}
	public static List getSkipData(){
		return skipData;
	}
	public static Hashtable getReplaceData(){
		return replaceData;
	}
	public static boolean isSessionData(String key){
		return sessionData.containsKey(key);
	}
	public static Hashtable getSessionData(){
		return sessionData;
	}
	public static void addSessionData(String key,String value){
		sessionData.put(key,value);
	}
	public static void addSessionData(Hashtable data){
		sessionData.putAll(data);
	}
	public static void clearSessionData(){
		sessionData.clear();
	}	
	
	public static boolean isCookieData(String key){
		return cookieData.containsKey(key);
	}	
	public static String getCookieData(String key){
		return (String)cookieData.get(key);
	}	
	public static void addCookieData(String key,String value){
		cookieData.put(key, value);
	}
	public static void clearCookieData(){
		cookieData.clear();
	}
}
